package cn.wolfcode.service;

import cn.wolfcode.entity.Userinfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author c1eye
 * @since 2022-11-03
 */
public interface IUserinfoService extends IService<Userinfo> {

    boolean checkPhone(String phone);

    void sendVerifyCode(String phone);

    void regist(String phone, String nickname, String password, String repassword, String verifyCode, String key);

    Userinfo login(String username, String password);

    List<Userinfo> queryByCity(String name);
}
